#include "qmlgraphicsviewpreview.h"

QmlGraphicsViewPreview::QmlGraphicsViewPreview(QQuickItem* parent) : QQuickItem(parent)
{
    setFlag(QQuickItem::ItemHasContents);
}

void QmlGraphicsViewPreview::setSource(QmlGraphicsView* source) noexcept
{
    if (source != m_source)
    {
        m_source = source;
        emit sourceChanged();
    }
}

QRectF QmlGraphicsViewPreview::rectUnion(QRectF a, QRectF b) const
{
    return a.united(b);
}
